<%@page import="java.security.SecureRandom"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html lang="en">

<head>
<title>ADMIN商品详情</title>
</head>
<h1>ADMIN商品详情</h1>

<body>
<a href="${ pageContext.request.contextPath }/admin/admin_good.shtml?pageNum=1">返回商品信息页面</a>

<a href="${ pageContext.request.contextPath }/admin/updateGood.shtml?goodId=${good.goodId}">修改商品信息</a>

<a href="${ pageContext.request.contextPath }/good/good_delete.shtml?goodId=${good.goodId}">删除商品信息</a>
<table border="1" width="1200" align="center">
		<tr>
			<th>ID</th>
			<th>名字</th>
			<th>颜色</th>
			<th>品牌</th>
			<th>描述</th>
			<th>价格</th>
			<th>创建时间</th>
			
		</tr>
		<tr>
			<td><c:out value="${good.goodId}" /></td>
			<td><c:out value="${good.goodName}" /></td>
			<td><c:out value="${good.goodColour}" /></td>
			<td><c:out value="${good.goodBrand}" /></td>
			<td><c:out value="${good.goodDesc}" /></td>
			<td><c:out value="${good.goodPrice}" /></td>
			<td><c:out value="${good.createTime}" /></td>
			
		</tr>
	</table>
	status:${status}
	<form action="<%=basePath %>//good/image_insert.shtml" method ="post" enctype ="multipart/form-data">
		<p>上传照片：<input type="file" name="bigHeadImage"></p>
		<input type="hidden" name="goodId" value ="${good.goodId}">
		<p><input type="submit" value="上传"></p>
	</form>

	<c:forEach items="${ images }" var="image">
		<img src="${ image.imageUrl}"  height="200" width="100"/>	
		${ image.imageUrl}  
		<br>
	</c:forEach>


</body>
</html>
